<!DOCTYPE html>
<html>
<head>
<style>
    * {
        position: absolute;
        transform: scaleX(2);
    }
</style>
</head>
<body>
<p id="description">This tests selecting text inside a non-statically positioned SVG content. This test passes if it does not crash.</p>
<svg style="width: 50px; height: 50px; border: 1px solid black;">
<text>svg text</text>
</svg>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

document.execCommand("SelectAll");

document.querySelector('style').remove();
document.write('PASS');
</script>
</body>
</html>

